const fs = require('fs');

fs.unlink (__dirname + '\\text-buffer.txt', err => {
  if (err) throw err;

  console.log('delete done!');
});

